#ifndef HTTPCLIENT_H
#define HTTPCLIENT_H

#include <QEventLoop>

#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QWidget>
#include <QJsonObject>
#include <QJsonDocument>
#include <QByteArray>



#define API_POST_REQUEST "http://121.43.172.79:50100/startFrp/"

class HttpClient: public QWidget
{
    Q_OBJECT

public:
    HttpClient();
    ~HttpClient();

    static HttpClient* getInstance();

    QString post(QString fullRequest, int msec);

protected:
    static HttpClient* m_instance;

signals:
    void sigHttpResponse(int);
};

#endif // HTTPCLIENT_H
